home *** CD-ROM | disk | FTP | other *** search
/ MacFormat 1998 July / MacFormat CD-ROM MF65 (Future Publishing, Ltd.)(July 1998).iso / Demos / Scorpion BarCode 1.20 trial / Scripts / ReadMe - BarCode Word < prev    next >
Encoding:
Text File  |  1998-03-16  |  1.4 KB  |  41 lines  |  [ttro/ttxt]

  1.  
  2.  
  3.  
  4.  
  5.  
  6.  
  7.  
  8.  
  9.  
  10.  
  11.  
  12. BarCode Word
  13.  
  14. This AppleScript™ creates some text in a Microsoft Word™ document and places the BarCode equivalent graphic into a picture box on the same line:
  15.  
  16. tell application "Microsoft Word"
  17.     activate
  18.     do script "FileNew .Template = \"Normal\", .NewTemplate = 0"
  19.     set contents of selection to "5001234567890"
  20.     do script "CharLeft 13, 1"
  21.     copy
  22.     do script "LineDown 2"
  23.     set contents of selection to " is represented by        "
  24. end tell
  25. tell application "Scorpion BarCode"
  26.     activate
  27.     macro "MENU Encode EAN-13"
  28.     macro "CLCK Field  1"
  29.     macro "MENU Edit Paste Data"
  30.     macro "BUTN Press Clip"
  31.     macro "BUTN Press OK"
  32.     macro "MENU File Quit"
  33. end tell
  34. tell application "Microsoft Word"
  35.     activate
  36.     paste
  37. end tell
  38.  
  39. The script was created using the ScriptEditor™ program supplied with AppleScript™ system software. The Scorpion BarCode software supports the Script Recording feature within ScriptEditor™ enabling you to create scripts easily and quickly!
  40.  
  41. Please note that references to various known trademarks or registered trademarks of Apple Computer Inc and Microsoft Corporation have been made in this document. Such references do not imply any endorsement of, or other affiliations with, Scorpion Research Limited or vice versa. The reference to the known trademarks or registered trademarks names is in an editorial fashion only, and to the benefit of the trademark holder and owner, with no intention of infringement of the trademark.